/* 产品详情页专用样式 */

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2c5530;
}

.breadcrumb i {
    margin: 0 10px;
    color: #aaa;
    font-size: 0.8rem;
}

.breadcrumb .current {
    color: #2c5530;
    font-weight: 500;
}

/* 产品主区域 */
.product-main {
    padding: 30px 0 60px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* 左侧：产品图片和媒体 */
.product-media {
    display: flex;
    flex-direction: column;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-thumbnails {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    opacity: 1;
    border-color: #2c5530;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品视频 */
.product-video h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.product-video h3 i {
    margin-right: 10px;
    color: #2c5530;
}

.video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-placeholder {
    position: relative;
    cursor: pointer;
    height: 300px;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s;
}

.video-placeholder:hover img {
    filter: brightness(0.8);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(44, 85, 48, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
    background-color: rgba(44, 85, 48, 0.95);
    transform: translate(-50%, -50%) scale(1.05);
}

.video-placeholder p {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

/* 视频模态框 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(0,0,0,0.7);
}

.video-wrapper {
    padding: 30px;
    background-color: #f8f9fa;
}

.demo-video {
    background-color: #e9f5e9;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    color: #2c5530;
}

.demo-video h4 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.demo-video p {
    margin-bottom: 10px;
}

/* 右侧：产品信息 */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 30px;
}

.product-tag {
    display: inline-block;
    background-color: #e9f5e9;
    color: #2c5530;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c5530;
}

.product-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

.product-description {
    margin-bottom: 40px;
}

.product-description h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.product-description h3 i {
    margin-right: 10px;
    color: #2c5530;
}

.product-description p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.product-features h3 i {
    margin-right: 10px;
    color: #2c5530;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    background-color: #e9f5e9;
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.95rem;
    color: #666;
}

/* 产品参数区域 */
.product-specs {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.specs-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.specs-table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.spec-row {
    display: flex;
    padding: 18px 25px;
    border-bottom: 1px solid #eee;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:nth-child(odd) {
    background-color: #fafafa;
}

.spec-name {
    width: 150px;
    font-weight: 600;
    color: #2c5530;
    flex-shrink: 0;
}

.spec-value {
    flex: 1;
    color: #555;
}

.specs-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.specs-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 15px;
    text-align: center;
    background-color: white;
    font-size: 0.95rem;
    color: #666;
    border-top: 1px solid #eee;
}

/* 产品功效区域 */
.product-benefits {
    padding: 60px 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 30px 25px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.benefit-card:hover {
    background-color: #e9f5e9;
    border-color: #d4e6d4;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.benefit-icon {
    font-size: 2.8rem;
    color: #2c5530;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* 相关产品区域 */
.related-products {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.related-img {
    height: 200px;
    overflow: hidden;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-info {
    padding: 25px;
}

.related-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.related-info p {
    color: #666;
    margin-bottom: 20px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #2c5530;
    color: #2c5530;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #2c5530;
    color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .specs-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .video-wrapper {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .product-main {
        padding: 20px 0 40px;
    }
    
    .image-thumbnails {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .spec-row {
        flex-direction: column;
        padding: 15px;
    }
    
    .spec-name {
        width: 100%;
        margin-bottom: 5px;
    }
}